// app/model/case.js //订单
'use strict';

module.exports = app => {
  const {
    STRING,
    INTEGER,
  } = app.Sequelize;
  const Case = app.model.define('case', {
    id_case: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },//挂号ID
    previous_history: {
      type: STRING,
    },//既往史
    fertility_case: STRING,//生育状况
    marriage_case: STRING,//婚姻状况
    meal_case: STRING,//最后一餐
    temperature_case: STRING,//体温
    previous_history: STRING,//既往史
    main_suit: STRING,//主诉
    prescribing_diagnostic: STRING,//诊断开药
    physician_order_diagnostic: STRING,//医嘱
    illness_callback: STRING,//回访病情状况
    medication_callback: INTEGER,//回访用药效果
    direction_medication_callback: STRING,//回访用药指导
    direction_live_callback: STRING,//回访生活指导
  }, {
    freezeTableName: true,
    timestamps: false,
  });
  return Case;
};

